package com.junqson.je.admin.repo;

import com.junqson.je.admin.model.UserAuthOrderModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Descriptions
 * @Company
 * @Author Junqson
 * @Date 2020/2/3 12:17
 * @Version 1.0
 */
@Repository
public interface UserAuthOrderRepo extends JpaRepository<UserAuthOrderModel, Integer> {

    UserAuthOrderModel getFirstByUserIdOrderByBizTimeDesc(Integer userId);

    UserAuthOrderModel getByOrderId(Integer orderId);

    List<UserAuthOrderModel> getByExamineFalseOrderByBizTimeAsc();
}

